package com.flying.invest.account.model;

import java.util.Date;

import com.flying.framework.data.Data;
import com.flying.common.util.Codes;
import com.flying.framework.annotation.Param;
import com.flying.framework.data.DataSerializable;
import com.flying.framework.metadata.Meta;

@SuppressWarnings("serial")
@Meta(id="i_account_net_value",title="账户净值", table="i_account_net_value", primaryKeys={"net_value_id"})
public class AccountNetValue extends Data implements DataSerializable {
	public final static String ENTITY_NAME = "i_account_net_value";
	
	public final static String NET_VALUE_ID = "net_value_id";
	public final static String USER_ID = "user_id";
	public final static String ACCOUNT_ID = "account_id";
	public final static String ACCOUNT_DATE = "account_date";
	public final static String NET_VALUE = "net_value";
	public final static String SHARES = "shares";
	public final static String TOTAL_AMOUNT = "total_amount";
	public final static String CREATE_TIME = "create_time";
	
	
	@Param(value=NET_VALUE_ID,   required=true,   maxlength=0,	desc="ID" , generator=Codes.AUTO_INCREMENT)
	private Long netValueId;
	
	@Param(value=USER_ID,   required=true,   maxlength=0,	desc="所属用户" )
	private Long userId;
	
	@Param(value=ACCOUNT_ID,   required=false,   maxlength=0,	desc="账户ID" )
	private Long accountId;
	
	@Param(value=ACCOUNT_DATE,   required=false,   maxlength=10,	desc="记账日期" )
	private String accountDate;
	
	@Param(value=NET_VALUE,   required=false,   maxlength=0,	desc="净值" )
	private Double netValue;
	
	@Param(value=SHARES,   required=false,   maxlength=0,	desc="份额" )
	private Double shares;
	
	@Param(value=TOTAL_AMOUNT,   required=false,   maxlength=0,	desc="总额" )
	private Double totalAmount;
	
	@Param(value=CREATE_TIME,   required=false,   maxlength=0,	desc="创建时间" )
	private Date createTime;
	
	
	public Long getNetValueId() {
		return this.netValueId;
	}
	
	public void setNetValueId(Long netValueId) {
		this.netValueId = netValueId;
	}
	
	public Long getUserId() {
		return this.userId;
	}
	
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
	public Long getAccountId() {
		return this.accountId;
	}
	
	public void setAccountId(Long accountId) {
		this.accountId = accountId;
	}
	
	public String getAccountDate() {
		return this.accountDate;
	}
	
	public void setAccountDate(String accountDate) {
		this.accountDate = accountDate;
	}
	
	public Double getNetValue() {
		return this.netValue;
	}
	
	public void setNetValue(Double netValue) {
		this.netValue = netValue;
	}
	
	public Double getShares() {
		return this.shares;
	}
	
	public void setShares(Double shares) {
		this.shares = shares;
	}
	
	public Double getTotalAmount() {
		return this.totalAmount;
	}
	
	public void setTotalAmount(Double totalAmount) {
		this.totalAmount = totalAmount;
	}
	
	public Date getCreateTime() {
		return this.createTime;
	}
	
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	

}